Test Series - java script

Test Number 47/92

Q: What is the advantage of the code produced graphics being smaller than the images themselves?
A. Bandwidth saving
B. Increase in bandwidth
C. Dynamic advantages
D. Static advantage
Solution: The code used to produce graphics on the client side is typically much smaller than the images themselves, creating substantial bandwidth savings.
Q: Which of the following uses a lot of CPU cycles?
A. GUI
B. Statically generated graphics
C. Dynamically generated graphics
D. Images
Solution: Dynamic graphics for data, means simulating motion or movement using the computer. It may also be thought of as multiple plots linked by time. Dynamically generating graphics from real-time data uses a lot of CPU cycles.
Q: Which HTML element is used to include images?
A. image
B. img
C. src
D. sourcing
Solution: Web pages include images using the HTML img element. src tag is used to include the image link.
Q: What is the purpose of image replacement?
A. To replace an image
B. To implement special effects
C. Removal of image rollovers
D. Implementation of image rollovers
Solution: Image replacement is a technique developed to allow designers to use image-based typesetting while meeting accessibility requirements. One common use for image replacement is to implement image rollovers, in which an image changes when the mouse pointer moves over it.
Q: When is JavaScript called obtrusive?
A. JavaScript code is medium sized
B. JavaScript code is small
C. JavaScript code is so large
D. JavaScript code is Very small
Solution: When the amount of JavaScript code is so large that it effectively obscures the HTML, we call JavaScript as obtrusive. On the other hand unobtrusive JavaScript is a best practice methodology for attaching JavaScript to the front-end of a website.
Q: Which is a possible way of finding all the img elements in the document?
A. document(images)
B. document.images[]
C. document(img)
D. doc(img)
Solution: The best suited option is document.image[] to find all img elements in the document.[index] is used to specify the index of which img tag is to be selected.
Q: Which of the following elements are used to include audio?
A. audio
B. video
C. svg
D. aud
Solution: The audio tag is used to include audio in the HTML document. The audio tag includes method like play(), pause() etc.
Q: Which of the following attributes are common to both audio and video?
A. enter
B. control
C. controls
D. add
Solution: Both audio and video support a controls attribute. When present, it specifies that audio controls should be displayed. Both audio and video support a controls attribute.
Q: Which of the following is not the property of the video tag?
A. width
B. height
C. breadth
D. area
Solution: The video tag does not contain a breadth property. The width and height property specifies the width and height of the video.
Q: Which of the following is the parameter used to invoke the Audio() constructor?
A. File type
B. Music type
C. Both File and Music
D. Video type
Solution: The HTMLAudioElement interface provides access to the properties of 

You Have Score    /10